﻿@model IQReportes.ViewModels.UsuarioBasicoViewModel

@{
    ViewBag.Title = "Crear";
}
<div id="UsuarioCrear" class="container form form-horizontal">
    
    @using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        <fieldset>
            <legend>Nuevo Usuario</legend>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model._usuario)</label>
                <div class="controls">
                    @Html.EditorFor(model =>model._usuario)
                    @Html.ValidationMessageFor(model => model._usuario)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.clave)</label>
                <div class="controls">
                    @Html.PasswordFor(model =>model.clave)
                    @Html.ValidationMessageFor(model => model.clave)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model => model.nombre)</label>
                <div class="controls">
                    @Html.EditorFor(model =>model.nombre)
                    @Html.ValidationMessageFor(model => model.nombre)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.email)</label>
                <div class="controls">
                    @Html.EditorFor(model =>model.email)
                    @Html.ValidationMessageFor(model => model.email)
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">@Html.LabelFor(model=>model.idPerfil)</label>
                <div class="controls">
                    @Html.DropDownList("idPerfil")

                </div>
            </div>
            
            <div class="form-actions">
                <a href="@Url.Action("Index")" class="btn">Regresar</a>
			    <input type="submit" class="btn btn-primary" value="Guardar"/>
	        </div>
        </fieldset>
    }
    <script src="~/Scripts/ValidacionesBootstrap.js"></script>
</div>